package com.common;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

/**
 * Created by 10742 on 2017/7/10.
 */
public class DeleteTool extends JdbcDaoSupport {

    public int delete(String sql, String data){
        System.out.println(sql + " " + data);
        return getJdbcTemplate().update(sql, data);
    }

    public int delete(String sql, int data){
        System.out.println(sql + " int " + data);
        return getJdbcTemplate().update(sql, data);
    }

}
